
export function mapToObject(map:Map<any, any>){
    // @ts-ignore
    return [...map.entries()].reduce((obj, [key, value]) => (obj[key] = value, obj), {})
}

export function  objectToMap(obj:object){
    return new Map(Object.entries(obj));
}
